﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReceiptRptList.aspx.cs" EnableViewState="false" EnableEventValidation="false" Inherits="WMS6.Web.Analytics.ReceiptRptList" meta:resourcekey="Page" %>
<%@ PreviousPageType VirtualPath="~/Analytics/ReceiptRptQuery.aspx" %>
<%@ Register src="../UserControls/Pager.ascx" tagname="Pager" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ReceiptRptList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/checkbox.js" type="text/javascript"></script>    
    <script type="text/javascript">
    
      window.onload = function(){
            initListPage();
        }
        
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "ReceiptRptQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
    </script>
</head>
<body>
    <form id="F15131" runat="server">
    <div>
        
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblReceiptInquiryList" runat="server" CssClass="label_header"  Text="收货报告" meta:resourcekey="lblUom"></asp:Label></td>
                      <td><asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" 
                              Text="<%$Resources:ButtonResource,btnRefresh%>"  
                              onclick="btnRefresh_Click" /></td>
                    </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                
                <div id="div_List">
                <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
                    </div>
                    <asp:GridView ID="gvReceiptRpt" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                        CssClass="gridview" 
                        DataKeyNames="RECEIPT_ID" PageSize="20" Width="3100px" 
                        onrowdatabound="gvReceiptRpt_RowDataBound"  oninit="gvReceiptRpt_Init" 
                        onsorting="gvReceiptRpt_Sorting" meta:resourcekey="gvReceiptRpt">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                            <Columns>
                                    <asp:BoundField HeaderText="序号" FooterText="序号" 
                                        meta:resourcekey="BoundField">
                                        <ItemStyle CssClass="GridViewRowWidth_40" />
                                    </asp:BoundField>
                                    
                                    <asp:TemplateField meta:resourcekey="TemplateField">
                                        <HeaderTemplate>
                                            <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('15131','gvReceiptRpt');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                            <asp:CheckBox ID="CheckBox1" runat="server" 
                                                onclick="selectAll(this,'gvReceiptRpt');" 
                                                meta:resourcekey="CheckBox1" /> 
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chbSelect" runat="server" 
                                                meta:resourcekey="chbSelect" />
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <asp:CheckBox ID="CheckBox2" runat="server" 
                                                onclick="selectAll(this,'gvReceiptRpt');" 
                                                meta:resourcekey="CheckBox2" /> 
                                        </FooterTemplate>
                                        <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50"/>
                                        <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50"/>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="OWNER_ID" HeaderText="货主代码" FooterText="货主代码" 
                                        SortExpression="OWNER_ID" meta:resourcekey="OWNER_ID">
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:BoundField>      
                                    <asp:BoundField DataField="RECEIPT_ID" HeaderText="入库通知单" FooterText="入库通知单" 
                                        SortExpression="RECEIPT_ID" meta:resourcekey="RECEIPT_ID">
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="PO_ID" HeaderText="采购订单号" FooterText="采购订单号" 
                                        SortExpression="PO_ID" meta:resourcekey="PO_ID">
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="EXTERNAL_RECEIPT_ID" HeaderText="外部入库单号" 
                                        FooterText="外部入库单号" SortExpression="EXTERNAL_RECEIPT_ID" 
                                        meta:resourcekey="EXTERNAL_RECEIPT_ID">
                                        <ItemStyle CssClass="GridViewRowWidth_200" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="RECEIPT_TYPE" HeaderText="类型" FooterText="类型" 
                                        SortExpression="RECEIPT_TYPE" meta:resourcekey="RECEIPT_TYPE">
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:BoundField>
                                <asp:BoundField DataField="VENDOR_ID" HeaderText="供应商代码" FooterText="供应商代码" 
                                        SortExpression="VENDOR_ID" meta:resourcekey="VENDOR_ID">
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:BoundField>
                                <asp:BoundField DataField="VENDOR_NAME" HeaderText="供应商名称" FooterText="供应商名称" 
                                        SortExpression="VENDOR_NAME" meta:resourcekey="VENDOR_NAME">
                                        <ItemStyle CssClass="GridViewRowWidth_200" />
                                    </asp:BoundField>   
                                    <asp:TemplateField FooterText="制单日期" HeaderText="制单日期" 
                                        SortExpression="CREATED_DATE" meta:resourcekey="CREATED_DATE">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCreatedDate" runat="server" 
                                            Text='<%# GetPreferenceShortDate(Eval("CREATED_DATE").ToString()) %>' 
                                            meta:resourcekey="lblCreatedDate"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:TemplateField>
                                <asp:TemplateField FooterText="收货日期" HeaderText="收货日期" 
                                        SortExpression="RECEIPT_DATE" meta:resourcekey="RECEIPT_DATE">
                                    <ItemTemplate>
                                        <asp:Label ID="lblReceiptDate" runat="server" 
                                            Text='<%# GetPreferenceShortDate(Eval("RECEIPT_DATE").ToString()) %>' 
                                            meta:resourcekey="lblReceiptDate"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" 
                                        SortExpression="SKU_ID" meta:resourcekey="SKU_ID">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SKU_DESCR" 
                                        meta:resourcekey="SKU_DESCR" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblSkuDescr" runat="server" 
                                            Text='<%# Eval("SKU_DESCR").ToString() %>' 
                                            meta:resourcekey="lblSkuDescr"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_200" />       
                                 </asp:TemplateField>
                                  <asp:BoundField DataField="PACK_ID" HeaderText="包装代码" FooterText="包装代码" SortExpression="PACK_ID"
                                meta:resourcekey="PACK_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                             <asp:BoundField DataField="UOM_DESCR" HeaderText="单位" FooterText="单位" SortExpression="UOM_DESCR"
                                meta:resourcekey="UOM_DESCR">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                                <asp:BoundField DataField="SKU_CLASS_ID" HeaderText="货品分类" FooterText="货品分类" 
                                        SortExpression="SKU_CLASS_ID" meta:resourcekey="SKU_CLASS_ID">
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SKU_CLASS_DESCR" HeaderText="分类描述" FooterText="分类描述" 
                                        SortExpression="SKU_CLASS_DESCR" meta:resourcekey="BoundField0">
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:BoundField>                                   
                                    
                                <asp:TemplateField FooterText="预期量" HeaderText="预期量" SortExpression="EXPECTED_QTY" 
                                        meta:resourcekey="EXPECTED_QTY">
                                    <ItemTemplate>
                                        <asp:Label ID="lblExpectedQty" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("EXPECTED_QTY").ToString()) %>' 
                                            meta:resourcekey="lblExpectedQty"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                <asp:TemplateField FooterText="接收量" HeaderText="接收量" SortExpression="RECEIVED_QTY" 
                                        meta:resourcekey="RECEIVED_QTY">
                                    <ItemTemplate>
                                        <asp:Label ID="lblEeceivedQty" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("RECEIVED_QTY").ToString()) %>' 
                                            meta:resourcekey="lblEeceivedQty"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                <asp:TemplateField FooterText="差异量" HeaderText="差异量" SortExpression="DIFF_QTY" 
                                        meta:resourcekey="DIFF_QTY">
                                    <ItemTemplate>
                                        <asp:Label ID="lblDiffQty" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("DIFF_QTY").ToString()) %>' 
                                            meta:resourcekey="lblDiffQty"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                <asp:TemplateField FooterText="总重量" HeaderText="总重量" SortExpression="TOTAL_WGT" 
                                        meta:resourcekey="TOTAL_WGT">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTotalWgt" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("TOTAL_WGT").ToString()) %>' 
                                            meta:resourcekey="lblTotalWgt"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                <asp:TemplateField FooterText="总毛重" HeaderText="总毛重" 
                                        SortExpression="TOTAL_GROSS_WGT" meta:resourcekey="TOTAL_GROSS_WGT">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTotalGrossWgt" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("TOTAL_GROSS_WGT").ToString()) %>' 
                                            meta:resourcekey="lblTotalGrossWgt"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_200" />
                                </asp:TemplateField>
                                <asp:TemplateField FooterText="总体积" HeaderText="总体积" SortExpression="TOTAL_CUBE" 
                                        meta:resourcekey="TOTAL_CUBE">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTotalCube" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("TOTAL_CUBE").ToString()) %>' 
                                            meta:resourcekey="lblTotalCube"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="RMA" HeaderText="RMA" FooterText="RMA" 
                                        SortExpression="RMA" meta:resourcekey="RMA">
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="REMARK" HeaderText="备注" FooterText="备注" 
                                        SortExpression="REMARK" meta:resourcekey="REMARK">
                                        <ItemStyle CssClass="GridViewRowWidth_200" />
                                </asp:BoundField>
                            </Columns>
                        </asp:GridView>
                        <div>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr style="height: 10px">
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="Result_01">
                                    总计：
                                </td>
                                <td class="Result_02">
                                    <table>
                                        <tr>
                                            <td style="margin-right: 20px;">
                                                &nbsp; &nbsp;
                                            </td>
                                              <td>
                                                <asp:Label ID="lblTotalExpected" runat="server" Text="预期量:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalExpectedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalEeceived" runat="server" Text="接收量:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalEeceivedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalDiff" runat="server" Text="差异量:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalDiffQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalWgt" runat="server" Text="总重量:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalWgtText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalGrossWGT" runat="server" Text="总毛重:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalGrossWGTText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalCube" runat="server" Text="总体积:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalCubeText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="Result_03">
                                </td>
                            </tr>
                            <tr style="height: 20px">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div id="div_pager">
                    <uc1:Pager ID="PagerFooter" runat="server"  OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click" OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click"/>
                 </div>
                <input type="hidden" runat="server" id="hdnFrom" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <input type="hidden" id="hdnActionID" runat="server" />
        
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnSearch%>" CssClass="button" Enabled="False" 
                            OnClientClick="javascript:window.location.href='ReceiptRptQuery.aspx';return false;" 
                             />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="<%$Resources:ButtonResource,btnReSearch%>" CssClass="button" Enabled="False" 
                            OnClientClick="javascript:returnSearch();return false;" 
                             />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>" CssClass="button" Enabled="False" 
                           onclick="btnList_Click"   
                            Height="21px" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>" CssClass="button" Enabled="False" 
                             onclick="btnExport_Click"     />
                    </td>
                </tr>
            </table>
        </div>
        
    </div>
    </form>
</body>
</html>
